package com.cskaoyan.market.bo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;


/**
 * @author: YaLiFeng
 * @description: TODO
 * @date: 2024/5/20 22:27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class FeedBackBo {
    @Length(min=11,message="电话至少是13位")
    @Pattern(regexp="\\d+", message="参数不对")
    @NotEmpty
    private String mobile;
    @NotEmpty
    private String feedType;
    @NotEmpty
    private String content;
    private String[] picUrls;
    private Boolean hasPicture;

}
